/* 基础样式 */
:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    background-color: #f8f9fc;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-dark.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(58, 59, 69, 0.2);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* 头部卡片 */
.header-card {
    background: linear-gradient(120deg, #ffffff 0%, #f0f5ff 100%);
    border: 1px solid rgba(78, 115, 223, 0.15);
}

/* 表格样式 */
.table {
    color: #4a4a4a;
    margin-bottom: 0;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--secondary);
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid #eaecf4;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.03);
}

/* 按钮样式 */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-light {
    background-color: #f8f9fc;
    border-color: #e3e6f0;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 表单样式 */
.form-control, .form-select {
    border: 1px solid #d1d3e2;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #5a5c69;
}

/* 信息卡片 */
.info-card {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.05);
}

/* 页脚样式 */
footer {
    background-color: #fff;
    border-top: 1px solid #e3e6f0;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* 动画效果 */
.animate__animated {
    animation-duration: 0.5s;
}

/* 头像样式 */
.avatar-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
}

/* 徽章样式 */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
}

/* 删除按钮悬停效果 */
.delete-btn:hover {
    background-color: rgba(231, 74, 59, 0.1) !important;
    color: var(--danger) !important;
}
